#import <Foundation/Foundation.h>
#import "SEGProfileModel.h"
#import "SEGBussinessConstHeader.h"

#define kAccountUserID [SEGProfileManager sharedManager].profile.userId
#define kAccountCommunityID [SEGProfileManager sharedManager].profile.jobCommunity
#define kAccountMobile [SEGProfileManager sharedManager].profile.tel
#define kAccountNickName [SEGProfileManager sharedManager].profile.nickname
#define kAccountCommunityName [SEGProfileManager sharedManager].profile.communityName
#define kAccountCityName [SEGProfileManager sharedManager].profile.city
#define kAccountAddressId [SEGProfileManager sharedManager].profile.addressId
#define kAccountCustId [SEGProfileManager sharedManager].profile.custId

/// 有拉黑功能的用户
#define kAccountBlacklistUserId @"1245"

@interface SEGProfileManager : NSObject
#pragma mark - SINGLE----BEGIN----
+(instancetype)sharedManager;//创建单例
+(void)destroyResource;//销毁单例
#pragma mark - SINGLE----END----

#pragma mark - HTTP----BEGIN----
-(void)requestProfilecompleted:(void(^)(BOOL isSuccessed,id result,NSString* codeType,NSString* errorMessage))completed;

/**
 * 保存本地缓存的用户信息
 * @author Sam
 * @param userAccount  服务器下发的缓存信息
 * @return YES：本地缓存成功，NO：本地缓存失败
 */
+ (BOOL)seg_SaveSystemAccountWithUserID:(SEGProfileModel*)userAccount;
#pragma mark - HTTP----END----

#pragma mark - SOURCE----BEGIN----
@property (nonatomic, strong) SEGProfileModel *profile;
#pragma mark - SOURCE----END----

/// 开门类型
+ (SEGEnumOpendoorShowType)openDoorType;

/// 拉黑用户
/// @param userId 被拉黑用户的Id
+ (void)seg_setBlacklistForUserId:(NSString *)userId;
/// 获取用户的拉黑名单
+ (NSSet *)seg_getBlacklist;

@end
